namespace ext.util
{
	using System;
	using System.Runtime.CompilerServices;
	using System.Html;
	using System.Collections;
	
	
	/// <summary>Utility class for managing and interacting with cookies.</summary>
	/// <definedin>src\util\Cookies.js</definedin>
	[ScriptName("Cookies")]
	[ScriptNamespace("Ext.util")]
	[Imported()]
	public partial class Cookies
	{
		
		#region Constructors
		/// <summary>Constructor</summary>
		internal Cookies()
		{
		}
		#endregion
		
		#region Methods
		/// <summary>
		/// Retrieves cookies that are accessible by the current page. If a cookie
		/// does not exist, get() returns null. The following
		/// example retrieves the cookie called &quot;valid&quot; and stores the String value
		/// in the variable validStatus.
		/// 
		/// var validStatus = Ext.util.Cookies.get(&quot;valid&quot;);
		/// </summary>
		/// <htmlSummary>
		/// Retrieves cookies that are accessible by the current page. If a cookie
		/// does not exist, &lt;code&gt;get()&lt;/code&gt; returns &lt;tt&gt;null&lt;/tt&gt;. The following
		/// example retrieves the cookie called &quot;valid&quot; and stores the String value
		/// in the variable &lt;tt&gt;validStatus&lt;/tt&gt;.
		/// &lt;pre&gt;&lt;code&gt;
		/// var validStatus = Ext.util.Cookies.get(&quot;valid&quot;);
		/// &lt;/code&gt;&lt;/pre&gt;
		/// </htmlSummary>
		/// <definedin>src\util\Cookies.js</definedin>
		/// <param name="name">The name of the cookie to get</param>
		/// <returns>
		/// Returns the cookie value for the specified name;
		/// null if the cookie name does not exist.
		/// </returns>
		[ScriptName("get")]
		public object Get(string name)
		{
			throw new System.Exception("Imported - not implemented");
		}
		
		/// <summary>
		/// Removes a cookie with the provided name from the browser
		/// if found by setting its expiration date to sometime in the past.
		/// </summary>
		/// <definedin>src\util\Cookies.js</definedin>
		/// <param name="name">The name of the cookie to remove</param>
		[ScriptName("clear")]
		public void Clear(string name)
		{
			throw new System.Exception("Imported - not implemented");
		}
		
		/// <summary>
		/// Create a cookie with the specified name and value. Additional settings
		/// for the cookie may be optionally specified (for example: expiration,
		/// access restriction, SSL).
		/// </summary>
		/// <definedin>src\util\Cookies.js</definedin>
		/// <param name="name">The name of the cookie to set.</param>
		/// <param name="value">The value to set for the cookie.</param>
		/// <param name="expires">
		/// Specify an expiration date the
		/// cookie is to persist until. Note that the specified Date object will
		/// be converted to Greenwich Mean Time (GMT).
		/// </param>
		/// <param name="path">
		/// Setting a path on the cookie restricts
		/// access to pages that match that path. Defaults to all pages (&lt;tt&gt;&apos;/&apos;&lt;/tt&gt;).
		/// </param>
		/// <param name="domain">
		/// Setting a domain restricts access to
		/// pages on a given domain (typically used to allow cookie access across
		/// subdomains). For example, &quot;extjs.com&quot; will create a cookie that can be
		/// accessed from any subdomain of extjs.com, including www.extjs.com,
		/// support.extjs.com, etc.
		/// </param>
		/// <param name="secure">
		/// Specify true to indicate that the cookie
		/// should only be accessible via SSL on a page using the HTTPS protocol.
		/// Defaults to &lt;tt&gt;false&lt;/tt&gt;. Note that this will only work if the page
		/// calling this code uses the HTTPS protocol, otherwise the cookie will be
		/// created with default options.
		/// </param>
		[ScriptName("set")]
		public void Set(string name, object value, object expires, string path, string domain, bool secure)
		{
			throw new System.Exception("Imported - not implemented");
		}
		
		/// <summary>
		/// Create a cookie with the specified name and value. Additional settings
		/// for the cookie may be optionally specified (for example: expiration,
		/// access restriction, SSL).
		/// </summary>
		/// <definedin>src\util\Cookies.js</definedin>
		/// <param name="name">The name of the cookie to set.</param>
		/// <param name="value">The value to set for the cookie.</param>
		/// <param name="expires">
		/// Specify an expiration date the
		/// cookie is to persist until. Note that the specified Date object will
		/// be converted to Greenwich Mean Time (GMT).
		/// </param>
		/// <param name="path">
		/// Setting a path on the cookie restricts
		/// access to pages that match that path. Defaults to all pages (&lt;tt&gt;&apos;/&apos;&lt;/tt&gt;).
		/// </param>
		/// <param name="domain">
		/// Setting a domain restricts access to
		/// pages on a given domain (typically used to allow cookie access across
		/// subdomains). For example, &quot;extjs.com&quot; will create a cookie that can be
		/// accessed from any subdomain of extjs.com, including www.extjs.com,
		/// support.extjs.com, etc.
		/// </param>
		[ScriptName("set")]
		public void Set(string name, object value, object expires, string path, string domain)
		{
			throw new System.Exception("Imported - not implemented");
		}
		
		/// <summary>
		/// Create a cookie with the specified name and value. Additional settings
		/// for the cookie may be optionally specified (for example: expiration,
		/// access restriction, SSL).
		/// </summary>
		/// <definedin>src\util\Cookies.js</definedin>
		/// <param name="name">The name of the cookie to set.</param>
		/// <param name="value">The value to set for the cookie.</param>
		/// <param name="expires">
		/// Specify an expiration date the
		/// cookie is to persist until. Note that the specified Date object will
		/// be converted to Greenwich Mean Time (GMT).
		/// </param>
		/// <param name="path">
		/// Setting a path on the cookie restricts
		/// access to pages that match that path. Defaults to all pages (&lt;tt&gt;&apos;/&apos;&lt;/tt&gt;).
		/// </param>
		[ScriptName("set")]
		public void Set(string name, object value, object expires, string path)
		{
			throw new System.Exception("Imported - not implemented");
		}
		
		/// <summary>
		/// Create a cookie with the specified name and value. Additional settings
		/// for the cookie may be optionally specified (for example: expiration,
		/// access restriction, SSL).
		/// </summary>
		/// <definedin>src\util\Cookies.js</definedin>
		/// <param name="name">The name of the cookie to set.</param>
		/// <param name="value">The value to set for the cookie.</param>
		/// <param name="expires">
		/// Specify an expiration date the
		/// cookie is to persist until. Note that the specified Date object will
		/// be converted to Greenwich Mean Time (GMT).
		/// </param>
		[ScriptName("set")]
		public void Set(string name, object value, object expires)
		{
			throw new System.Exception("Imported - not implemented");
		}
		
		/// <summary>
		/// Create a cookie with the specified name and value. Additional settings
		/// for the cookie may be optionally specified (for example: expiration,
		/// access restriction, SSL).
		/// </summary>
		/// <definedin>src\util\Cookies.js</definedin>
		/// <param name="name">The name of the cookie to set.</param>
		/// <param name="value">The value to set for the cookie.</param>
		[ScriptName("set")]
		public void Set(string name, object value)
		{
			throw new System.Exception("Imported - not implemented");
		}
		#endregion
	}
}
